process.stdin.on('data', function (dataBuffer) {
  const res = dataBuffer.toString()
    .split('\n')
    .filter(line => line.startsWith('|'))
    .map(line => {
      const [,code, name, desc, type] = line.split('|').map(col => col.trim());
      return {code, name, desc, type};
    });
  
  const resString = JSON.stringify(res)
    .replace('[{', '[\n{')
    .replace('}]', '}\n]')
    .replace(/},{/g, '},\n{')

  console.log(resString);
});